import React from 'react';
import {BrowserRouter as Router,Route} from 'react-router-dom'
import Home from './pages/home';
import About from './pages/about';


class App extends React.Component {
  constructor(props){
    super(props);
    this.state = {
      text: 'This is Text!'
    }
  }
  render(){
    return (
      <Router>
        <div>
          <Route exact path="/" component={Home} />
          <Route path="/about" component={About} />
        </div>
      </Router>
    )
  }
}
export default App;
